<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>视频文档列表 - 交通运输人员就业与再就业教育培训平台</title>
    <meta th:replace="~{head/head_include ::  title}"/>
</head>
<body>
<meta th:replace="~{head/head_include ::  header}"/>
<div class="container">
    <div class="row">
        <div class="col-sm-8 col-sm-offset-1 main">
            <h2 class="col-sm-10 col-sm-offset-1 form-signin-heading text-center">查看个人信息</h2>
            <div class="form-group row">
                <label for="email" class="col-sm-2 control-label">Id</label>
                <div class="col-sm-8">
                    <span th:text="${one?.id }"></span>
                </div>
            </div>
            <div class="form-group row">
                <label for="email" class="col-sm-2 col-form-label">组织:</label>
                <div class="col-sm-8">
                    <span th:text="${one?.organObj?.name}"></span>
                </div>
            </div>
            <div class="form-group row">
                <label for="email" class="col-sm-2 col-form-label">名称:</label>
                <div class="col-sm-8">
                    <span th:text="${one.name}"></span>
                </div>
            </div>
            <div class="form-group row">
                <label for="email" class="col-sm-2 col-form-label">审核人:</label>
                <div class="col-sm-8">
                    <span th:text="${one?.auditObj?.name }"></span>
                </div>
            </div>
            <div class="form-group row">
                <label for="email" class="col-sm-2 col-form-label">审核时间:</label>
                <div class="col-sm-8">
                    <span th:text="${#dates.format(one.auditTime,'yyyy-MM-dd')}"></span>
                </div>
            </div>
            <div class="form-group row">
                <label for="email" class="col-sm-2 col-form-label">创建时间:</label>
                <div class="col-sm-8">
                    <span th:text="${#dates.format(one.createTime,'yyyy-MM-dd HH:mm:ss')}"></span>
                </div>
            </div>
            <div class="form-group row">
                <label for="email" class="col-sm-2 col-form-label">更新时间:</label>
                <div class="col-sm-8">
                    <span th:text="${#dates.format(one.updateTime,'yyyy-MM-dd HH:mm:ss')}"></span>
                </div>
            </div>
            <div class="form-group row">
                <label for="email" class="col-sm-2 col-form-label">内容:</label>
                <div class="col-sm-8">
                    [(${one?.content})]
                </div>
            </div>
            <th:block th:each="one : ${fileList}">
                <div class="form-group row">
                    <div class="col-sm-8">
                        <video th:src="|@{/}${one.path}|" width="400" height="300" controls th:title="${one.name}"/>
                    </div>
                </div>
            </th:block>
        </div>
    </div>
</div>
<meta th:replace="~{head/head_include ::  footer}"/>
</body>
</html>
<script type="text/javascript" th:inline="javascript">
    /* 时长 */
    let timeLong = 10 * 1000;
    window.setTimeout(function(){
        ajaxPost();
    },timeLong);

    /**
     * 将当前任务的状态修改为完成
     */
    function ajaxPost(){
        var planUsersId = [[${param.planUsersId}]];
        console.log("执行定时任务,planUsersId:"+planUsersId);
        let reqPath = [[@{/head/train/planUsersBatch('ids'=${param.planUsersId},'operType'='3','entity.status'='2')}]];
        $.post(
            reqPath,
            '',
            function(data){
                console.log("服务器响应结果:", data);
            }
        );
        return false;
    }
</script>